package com.mall.mapper;

import com.mall.po.Vip;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mahaoqi
 * @ClassName VipMapper
 * @Description TODO
 * @Date 2021/1/5 20:08
 * @Version 1.0
 **/
public interface VipMapper {


    /*
     * @Author mahaoqi
     * @Description 添加用户
     * @Date 2021/1/6 16:03
     * @Param [vip]
     * @return java.lang.Integer
     **/
    public Integer insertOne(Vip vip);

    /*
     * @Author mahaoqi
     * @Description 根据id删除
     * @Date 2021/1/6 17:21
     * @Param [vipid]
     * @return java.lang.Integer
     **/
    public Integer deleteById(int vipid);

    /*
     * @Author mahaoqi
     * @Description 修改
     * @Date 2021/1/6 20:17
     * @Param [vip]
     * @return java.lang.Integer
     **/
    public Integer updateOne(Vip vip);

    /*
     * @Author mahaoqi
     * @Description 根据id修改
     * @Date 2021/1/6 20:17
     * @Param [vipid]
     * @return com.mall.po.Vip
     **/
    public Vip selectById(int vipid);


    public Integer selectCount();

    /*
     * @Author mahaoqi
     * @Description 分页查询
     * @Date 2021/1/7 14:51
     * @Param [page, limit]
     * @return java.util.List<com.mall.po.Vip>
     **/
    public List<Vip> selectList(@Param("page") Integer page,
                                @Param("limit") Integer limit);

    /*
     * @Author mahaoqi
     * @Description 批量删除
     * @Date 2021/1/7 15:22
     * @Param [vipids]
     * @return boolean
     **/
    public Integer deleteBatch(Integer[] vipids);
}
